PXC Documentation

PXC Home

Scale

pre 1.18

Simple node for scaling image.

Node Data

Display name

Scale

Internal name

Node_Scale

Inheritances

Node_Processor
Node_Scale

Inputs

Surfaces

surface

Surface In

Scale

enum

Mode

float

Scale

vec2

Target Dimension

enum

Fit Mode

bool

Move Atlas

Outputs

surface

Surface Out

Attributes

Color Depth
Interpolation

Scale surface. A simplified transform node with option for fitting surface to a fix dimension.



Properties


Scale
ModeScale mode:
- Upscale: Multiply dimension by a number.
- Scale to Size: Scale surface to fit fix dimension.
Fit ModeScaling method for Scale to Size mode.
- Stretch: Scale surface non-uniformly to fix the Target Dimension.
- Keep Aspect Minimum: Keep the aspect ratio of the original surface, scale to fit inside the Target Dimension.
- Keep Aspect Maximum: Keep the aspect ratio of the original surface, scale to cover the whole Target Dimension.
Move AtlasWhen inputting Atlas data. Whether to scale the atlas position as well.



Related Links